"""keeper URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.contrib import admin
from fengge.apis import *

urlpatterns = [
    url(r'^$', 'keeper.views.view'),
    # url(r'^api/', include(fg_api.urls)),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^datakeeper/', include('datakeeper.urls')),
    url(r'^lookup/', 'keeper.views.lookup_view', name='lookup_view'),
    url(r'^getschema/(?P<uri>[-\w/_,.+=()~:*]+)', 'keeper.views.data_view_schema', name='data_view_schema'),
    #url(r'^api1/', 'keeper.views.data_view1', name='data_view1'),
    url(r'^datafile/(?P<uri>[-\w/_,.+=()~:*]+)', 'keeper.views.data_view', name='data_view'),
    url(r'^datajson/(?P<uri>[-\w/_,.+=()~:*]+)', 'keeper.views.data_view_json', name='data_view_json'),
    # url(r'^data-cvs/', 'keeper.views.data_to_cvs_view', name='data_to_cvs_view'),
    url(r'^data-api/(?P<uri>[-\w/_,.+=()~:*]+)', 'keeper.views.data_api', name='data_api'),
    # url(r'^litter-r/', 'keeper.views.little_r_add_data', name='little_r_add_data'),
    url(r'^little-r/', include('littler.urls')),
]
